package com.ssm.basis.service.dictionary;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum LogicDeleteEnum implements DictEnum {
    @JsonEnumDefaultValue
    NOT_DELETED("0", "未删除", false),
    DELETED("1", "已删除", true);

    @EnumValue // 标记数据库存的值
    final String value;
    @JsonValue // 标记响应 json 值
    final String desc;
    final boolean bool;
}